import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import libs from './index.js'
import './permission' // permission
import {addDateRange, handleTree, parseTime, resetForm, selectDictLabel, selectDictLabels, getDownloadUrl} from "./utils/ruoyi";
import { getDicts } from "@/api/system/dict/data";
import VueCompositionAPI from "@vue/composition-api";
Vue.use(VueCompositionAPI);
Vue.use(plugins)
Vue.use(libs)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.addDateRange = addDateRange
Vue.prototype.handleTree = handleTree
Vue.prototype.parseTime = parseTime
Vue.prototype.resetForm = resetForm
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.getDownloadUrl = getDownloadUrl
Vue.prototype.getDicts = getDicts

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
